package com.gtw.modules.sys.service.impl;

import com.gtw.modules.dao.TbMyearningsDao;
import com.gtw.modules.entity.TbMyearnings;
import com.gtw.modules.sys.service.SysTbMyearningsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/** 个人明细接口实现类
 *
 * @author wuye
 * @date 2018/2/7
 */
@Service
public class SysTbMyearningsServiceImpl implements SysTbMyearningsService {

    @Autowired
    private TbMyearningsDao myearningsDao;

    @Override
    public TbMyearnings queryObject(Integer id){
        return myearningsDao.queryObject(id);
    }

    @Override
    public List<TbMyearnings> queryList(Map<String, Object> map){
        return myearningsDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map){
        return myearningsDao.queryTotal(map);
    }

    @Override
    public void save(TbMyearnings myearnings){
        myearningsDao.save(myearnings);
    }

    @Override
    public void update(TbMyearnings myearnings){
        myearningsDao.update(myearnings);
    }

    @Override
    public void delete(Integer id){
        myearningsDao.delete(id);
    }

    @Override
    public void deleteBatch(Integer[] ids){
        myearningsDao.deleteBatch(ids);
    }
}
